<?php
	class User extends BaseModel {

		private $id;

		private $login;

		private $password;

		private $email;

		public function __constructor() { }

		public function getId() {
			return $this->id;
		}

		public function setId( $param ) {
			$this->id = $param;
		}

		public function getLogin() {
			return $this->login;
		}

		public function setLogin( $param ) {
			$this->login = $param;
		}

		public function getPassword() {
			return $this->password;
		}

		public function setPassword( $param ) {
			$this->password = $param;
		}

		public function getEmail() {
			return $this->email;
		}

		public function setEmail( $param ) {
			$this->email = $param;
		}

		public function toJSONObject() {
			return array(
				"id" => $this->id,
				"login" => $this->login,
				"password" => $this->password,
				"email" => $this->email
			);
		}
	}
?>